package com.attunlcok.unlock.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.attunlcok.common.annotation.Excel;
import com.attunlcok.common.core.domain.BaseEntity;

/**
 * ATT用户信息对象 att_user_info
 * 
 * @author ruoyi
 * @date 2025-03-05
 */
public class AttUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 名 */
    @Excel(name = "名")
    private String firstName;

    /** 姓 */
    @Excel(name = "姓")
    private String lastName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 是否使用过（0未使用 1已使用） */
    @Excel(name = "是否使用过", readConverterExp = "0=未使用,1=已使用")
    private String isUsed;

    /** 最后使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "最后使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUsedTime;

    /** 使用次数 */
    @Excel(name = "使用次数")
    private Long usedCount;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFirstName(String firstName) 
    {
        this.firstName = firstName;
    }

    public String getFirstName() 
    {
        return firstName;
    }

    public void setLastName(String lastName) 
    {
        this.lastName = lastName;
    }

    public String getLastName() 
    {
        return lastName;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setIsUsed(String isUsed) 
    {
        this.isUsed = isUsed;
    }

    public String getIsUsed() 
    {
        return isUsed;
    }

    public void setLastUsedTime(Date lastUsedTime) 
    {
        this.lastUsedTime = lastUsedTime;
    }

    public Date getLastUsedTime() 
    {
        return lastUsedTime;
    }

    public void setUsedCount(Long usedCount) 
    {
        this.usedCount = usedCount;
    }

    public Long getUsedCount() 
    {
        return usedCount;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("firstName", getFirstName())
            .append("lastName", getLastName())
            .append("phone", getPhone())
            .append("isUsed", getIsUsed())
            .append("lastUsedTime", getLastUsedTime())
            .append("usedCount", getUsedCount())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
